package com.jic.market.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.market.entity.PatchGrouponMp;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商家商品活动库存限制表
 * @author : yinhaijun
 * @email : 
 * @since : 2020-01-10 11:00:34
 * @version : v1.0.0
 */
@Mapper
public interface  PatchGrouponMpMapper {

    Integer insert(PatchGrouponMp patchGrouponMp);

    Integer delete(Long id);

    Integer update(@Param("record") PatchGrouponMp record, @Param("example") PatchGrouponMp example);

    PatchGrouponMp queryByPrimaryKey(Long id);

    List<PatchGrouponMp> query(PatchGrouponMp patchGrouponMp);

    List<PatchGrouponMp> queryPage(
            @Param("startIndex") int startIndex,
            @Param("limit") int limit,
            @Param("example") PatchGrouponMp patchGrouponMp);

    long queryPageCount(@Param("example") PatchGrouponMp patchGrouponMp);

    long insertBatch(List<PatchGrouponMp> list);
}